package com.ssy.bus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ssy.bus.pojo.Purchase;
import com.ssy.bus.vo.PurchaseVo;
import com.ssy.common.utils.PageResult;
import com.ssy.common.utils.Result;

/**
 * @author ssy
 */
public interface IPurchaseService extends IService<Purchase> {

    PageResult loadAllPurchasePage(PurchaseVo purchaseVo);

    Result InsertPurchase(Purchase purchase);

    Result updatePurchaseState(String id);

    Result submitPurchaseState(String[] ids, Integer[] states);

    Result toVoidPurchaseState(String[] ids, Integer[] states);

    PageResult selectAllPurchasePageByState(PurchaseVo purchaseVo);

    Result updatePurchaseState(Purchase purchase, String[] ids);

    //入库审核
    Result submitPurchase(String[] ids, Integer[] states);

}
